package a.oschina.observedemo.demo4.version2;

/**
 * &lt;功能详细描述&gt;
 *
 * @author Administrator
 * @version [版本号, 2018/10/23]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
public class ComedyMatcher extends Observer {

    private String name;
    private Notifier notifier;

    public ComedyMatcher(String name, Notifier notifier) {
        super(name, notifier);
        this.name = name;
        this.notifier = notifier;
    }

    @Override
    public void update() {
        System.out.println(notifier.getAction() + name + "继续学习");
    }
}
